@mixin item_center() {
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  height: 40px;
  display: flex;
  background-color: red;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
  >.logo {
    width: 70px;
    @include item_center();
    background-image: url("../images/jd-sprites.png");
    background-size: 200px 200px;
    background-origin: content-box;
    background-clip: content-box;
    padding: 10px 5px;
    background-position: 0 -110px;
  }
  >.search {
    flex: 1;
    padding: 5px 0;
    >input {
      width: 100%;
      height: 100%;
      display: block;
      border-radius: 20px;
      border: none;
      outline: none;
    }
  }
  >.login {
    width: 50px;
    @include item_center();
    color: #fff;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  >a {
    width: 25%;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    >img {
      width: 50%;
    }
    >p {}
  }
}

.sec_kill {
  .kill_title {
    display: flex;
    justify-content: space-between;
    padding: 2px 10px;
    .kill_font {
      color: red;
    }
    .timer {
      font-size: 0;
      >span {
        font-size: 16px;
        background-color: #000;
        color: #fff;
        padding: 2px;
        margin-left: 2px;
      }
      >span:nth-child(3n) {
        background-color: #fff;
        color: #000;
      }
    }
  }
  .kill_content{
    display: flex;
    >a{
      flex: 1;
      position: relative;
      text-align: center;
      >img{}
      >.tips{
        background-color: #fdb60a;
        color: #fff;
        border-radius: 50%;
        padding: 2px 5px;
        position: absolute;
        bottom: 50%;
        right: 20%;
      }
      >.new_price{
        color: red;
      }
      >.old_price{
       color: #666;
       text-decoration: line-through;
      }
    }
  }
}

.festival {
  .festival_title {
      position: relative;
      ul {
          position: absolute;
          bottom: 5px;
          li {
              float: left;
              width: 50%;
              a {
                  img {
                      width: 95%;
                      margin: 0 auto;
                  }
              }
          }
      }
  }
  .festival_content {
     display: flex;
     flex-wrap: wrap;
     >a{
       width: 50%;
     }
     >a:nth-child(-n+3){
       width: 33.33%;
     }
  }
}

.goods_title{
  color: red;
  font-size: 20px;
}

.market{
  .market_content{
    >a{
      float: left;
      width: 50%;
    }
    >a:nth-child(4){
      clear: both;
    }
   
  }
}

.theme{
  .theme_content{
    >a{
      float: left;
      width: 25%;
    }
    >a:nth-child(-n+2){
      width: 50%;
    }
    >a:nth-child(5){
      clear: both;
    }
  }
}

.recommend{
  .rec_content{
    display: flex;
    >a{
      flex: 3;
    }
    >a:first-child{
      flex: 4;
    }
  }
}

.guess{
  .goods_title{
    display: flex;
    justify-content: space-between;
    padding: 5px;
    >a{
      display: flex;
      font-size: 14px;
      align-items: center;
      >img{
        width: 18px;
        height: 18px;
        margin-right: 5px;
      }
    }
  }
  .guess_content{
    ul{
      display: flex;
      flex-wrap: wrap;
      li{
        width: 50%;
        padding: 10px;
        .gc_title{
          display: flex;
          justify-content: space-between;
          >span{
            color: red;
          }
          >a{
            border: 1px solid #ccc;
            color: #666;
            font-size: 13px;
          }
        }
        .gc_content{
          >a{
            display: block;
            img{}
            >p{
              overflow: hidden;
              height: 40px;
              font-size: 15px;
              border-bottom: 1px solid #000;
            }
          }
        }
      }
    }
  }
}


.btm_tool{
  background-color: #f3f5f7;
  text-align: center;
  >*{
    border-top: 1px solid #000;
    padding: 10px 0;
  }
  >.more{
    display: block;
  }
  .link{
    display: flex;
    >a{
      flex:1;
      border-right: 1px solid #000;
    }
    >a:last-child{
      border-right: none;
    }
  }
  .devices{
    display: flex;
    >a{
      flex:1;
      >span{
        background-image: url("../images/jd-sprites.png");
        background-size: 200px 200px;
        background-position: -120px -70px;
        width: 40px;height: 40px;
        display: inline-block;
      }
      >p{}
    }
  }
}
.btm_bottom{
  display: flex;
  >a{
    flex:1;
  }
}
footer{
  display: flex;
  position: fixed;
  width: 100%;
  bottom: 0;
  >a{
    flex:1;
  }
}